app.controller('navCtrl',['$scope','$rootScope','cookies','menulistSvc','$state',function($scope,$rootScope,cookies,menulistSvc,$state){
		//菜单
	$scope.menu = menulistSvc.menulist();
	$scope.oEle = cookies.getCookie('ele');
	$scope.navActive = function(index){
		var className = '';
		if(index == $rootScope.navIndex) return className += 'active';
		return className;
	}
}])